﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BASE;

/// <summary>
/// Summary description for Base
/// </summary>
public class BasePage : System.Web.UI.Page
{
    public BasePage()
	{
		//
		// TODO: Add constructor logic here
		
	}
    public void MessenBox(int maLoi)
    {
        Literal liter = (Literal)Master.FindControl("liter_me");
       // Utils.Messenbox(liter);
    }
    public void MessenBox(int maloi, string noidung)
    {
        Panel pa = (Panel)Master.FindControl("pa_me");
        String html = "<div id=\"mebox\">";
        html += "    <a href=\"#\">";
        html += "      <div class=\"mebox-main\">";
        html += "          <div class=\"awidget2\">";
        html += "              <div class=\"awidget-head\">";
        html += "                  <h3>";
        html += "                      Thông báo</h3>";
        html += "              </div>";
        html += "            <div class=\"awidget-body no-table-bor\">";
        html += "                <a href=\"#\">"+noidung+"</a>";
        html += "            </div>";
        html += "        </div>";
        html += "  </a>";
        html += "  </div>";
        Label lb =new Label();
        lb.Text=html;
        pa.Controls.Add(lb);
    }

    public void ChuyenTrang()
    {
        Session["LVT"] = Constants.LVT;
        Response.Redirect("/admin/");
    }
   
}